using System.ComponentModel.DataAnnotations;
using SqlSugar;

namespace FytSoa.Domain.Hr;

/// <summary>
/// 知识库-章节
/// </summary>
[SugarTable("hr_knowledge_section")]
public class HrKnowledgeSection:Entity
{
    /// <summary>
    /// 知识库编号
    /// </summary>
    public long KnowledgeId { get; set; }

    /// <summary>
    /// 章节名称
    /// </summary>
    [Required]
    [StringLength(50)]
    public string Title { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    [Required]
    public int Sort { get; set; } = 0;

    /// <summary>
    /// 内容
    /// </summary>
    public string Content { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [Required]
    public DateTime CreateTime { get; set; } = DateTime.Now;

    /// <summary>
    /// 创建人
    /// </summary>
    public string CreateUser { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    public string UpdateUser { get; set; }


}